// vite.config.ts
import { fileURLToPath, URL } from "node:url";
import pxtorem from "file:///C:/Users/86188/Desktop/111/four-groups/node_modules/postcss-pxtorem/index.js";
import { defineConfig } from "file:///C:/Users/86188/Desktop/111/four-groups/node_modules/vite/dist/node/index.js";
import vue from "file:///C:/Users/86188/Desktop/111/four-groups/node_modules/@vitejs/plugin-vue/dist/index.mjs";
import AutoImport from "file:///C:/Users/86188/Desktop/111/four-groups/node_modules/unplugin-auto-import/dist/vite.js";
import Components from "file:///C:/Users/86188/Desktop/111/four-groups/node_modules/unplugin-vue-components/dist/vite.js";
import { VantResolver } from "file:///C:/Users/86188/Desktop/111/four-groups/node_modules/@vant/auto-import-resolver/dist/index.esm.mjs";
import { ElementPlusResolver } from "file:///C:/Users/86188/Desktop/111/four-groups/node_modules/unplugin-vue-components/dist/resolvers.js";
var __vite_injected_original_import_meta_url = "file:///C:/Users/86188/Desktop/111/four-groups/vite.config.ts";
var vite_config_default = defineConfig({
  plugins: [
    vue(),
    AutoImport({
      resolvers: [VantResolver(), ElementPlusResolver()]
    }),
    Components({
      resolvers: [VantResolver(), ElementPlusResolver()]
    })
  ],
  css: {
    postcss: {
      plugins: [
        pxtorem({
          rootValue: 37.5,
          //手机设计稿宽度为375px的
          propList: ["*"],
          //属性的选择器，*表示通用
          exclude: /web/i,
          //忽略web下的所有文件
          selectorBlackList: [".a-"]
          // 过滤掉.a- 开头的class，不进行rem转换
        })
      ]
    }
  },
  resolve: {
    alias: {
      "@": fileURLToPath(new URL("./src", __vite_injected_original_import_meta_url))
    },
    extensions: [".mjs", ".js", ".ts", ".jsx", ".tsx", ".json", ".vue"]
  },
  server: {
    proxy: {
      "/v1": {
        target: "http://www.chunyuyisheng.com",
        // http://www.chunyuyisheng.com/
        changeOrigin: true,
        rewrite: (path) => path.replace("/v1", "")
      },
      "/api": {
        target: "http://124.221.74.149:8011",
        // http://124.221.74.149:8011
        changeOrigin: true,
        rewrite: (path) => path.replace("/api", "")
      },
      "/oss": {
        target: "http://localhost:9000",
        changeOrigin: true,
        rewrite: (path) => path.replace("/oss", "")
      }
    }
  },
  build: {
    // 这里可以设置更细致的配置
    rollupOptions: {
      onwarn(warning, warn) {
        if (warning.code === "UNUSED_EXTERNAL_IMPORT") return;
        warn(warning);
      }
    },
    chunkSizeWarningLimit: 1e4
    // 设置警告阈值为 1000 KB
  }
});
export {
  vite_config_default as default
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcudHMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImNvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9kaXJuYW1lID0gXCJDOlxcXFxVc2Vyc1xcXFw4NjE4OFxcXFxEZXNrdG9wXFxcXDExMVxcXFxmb3VyLWdyb3Vwc1wiO2NvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9maWxlbmFtZSA9IFwiQzpcXFxcVXNlcnNcXFxcODYxODhcXFxcRGVza3RvcFxcXFwxMTFcXFxcZm91ci1ncm91cHNcXFxcdml0ZS5jb25maWcudHNcIjtjb25zdCBfX3ZpdGVfaW5qZWN0ZWRfb3JpZ2luYWxfaW1wb3J0X21ldGFfdXJsID0gXCJmaWxlOi8vL0M6L1VzZXJzLzg2MTg4L0Rlc2t0b3AvMTExL2ZvdXItZ3JvdXBzL3ZpdGUuY29uZmlnLnRzXCI7aW1wb3J0IHsgZmlsZVVSTFRvUGF0aCwgVVJMIH0gZnJvbSAnbm9kZTp1cmwnXHJcblxyXG5pbXBvcnQgcHh0b3JlbSBmcm9tICdwb3N0Y3NzLXB4dG9yZW0nO1xyXG5pbXBvcnQgeyBkZWZpbmVDb25maWcgfSBmcm9tICd2aXRlJ1xyXG5pbXBvcnQgdnVlIGZyb20gJ0B2aXRlanMvcGx1Z2luLXZ1ZSdcclxuaW1wb3J0IEF1dG9JbXBvcnQgZnJvbSAndW5wbHVnaW4tYXV0by1pbXBvcnQvdml0ZSc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